#!/usr/bin/env python

x=50

def f():
    #x = 100 #if you comment off these 2 lines, there are syntax errors.
    #print ('x is ', x)
    
    global x
    print ('x is ', x)
    x=2

f()
print ('x is ', x)
